// const getRealPath = (pathname, desc = false) => {
//   if (!pathname) {
//     pathname = window.location.pathname;
//   }
//   let names = pathname.split("/");
//   if (desc === false) {
//     for (let i = names.length - 1; i >= 0; --i) {
//       let name = names[i].trim();
//       if (name.length > 0 && name !== "/" && name !== "index.html") {
//         return name;
//       }
//     }
//   } else {
//     for (let i = 0; i < names.length; ++i) {
//       let name = names[i].trim();
//       if (name.length > 0 && name !== "/" && name !== "index.html") {
//         console.log(4545,name,names);
//         return name;
//       }
//     }
//   }
//   return "/";
// };
let links = document.querySelectorAll(".nexmoe-list-item");
for (let link of links) {
  let linkPath = link.getAttribute("href");
  let locationPath = window.location.pathname
  if (linkPath && locationPath===linkPath) {
    link.className = "active nexmoe-list-item mdui-list-item mdui-ripple";
  }
}

$("table")
  .has("img")
  .addClass("nexmoe-albums");
console.log("执行app.js")
function search() {
  window.open($("#search_form").attr("action_e") + " " + $("#search_value").val());
  return false;
}
